package com.xhsj.user.hr.process.hrLeaveProcess.entity;

import java.math.BigDecimal;
import com.xhsj.user.hr.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 流程-hr请假申请表
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_hr_approval_leave_apply")
public class TbHrApprovalLeaveApply extends BaseEntity<TbHrApprovalLeaveApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id 外键 tb_global_organization表id
     */
    @TableField("organization_id")
    private Long organizationId;

    /**
     * 部门名称
     */
    @TableField("organization_name")
    private String organizationName;

    /**
     * 职位id 外键 tb_global_organization表id
     */
    @TableField("position_id")
    private Integer positionId;

    /**
     * 职位名称
     */
    @TableField("position_name")
    private String positionName;

    /**
     * 请假类型  外键   tb_hr_assist_vacation  id
     */
    @TableField("vacation_id")
    private Integer vacationId;

    /**
     * 审核信息
     */
    @TableField("node_id")
    private Long nodeId;

    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    /**
     * 请假事由
     */
    @TableField("reason")
    private String reason;

    /**
     * 请假事由
     */
    @TableField("xj_reason")
    private String xjReason;

    /**
     * 总计天数
     */
    @TableField("days")
    private BigDecimal days;

    /**
     * 0请假 1延期 2销假
     */
//    @TableField("operation_type")
//    private Integer operationType;

    /**
     * 所有的父类
     */
//    @TableField("parent_ids")
//    private String parentIds;

    /**
     * 是否是最新一条数据 0 是 1否
     */
//    @TableField("last_data")
//    private Integer lastData;

    /**
     * 流程id 外键  tb_global_business id
     */
    @TableField("business_id")
    private Long businessId;

    /***
     * 销假前时间关联id - 用于申请销假的时候
     */
    @TableField("old_id")
    private Long oldId;


}
